package com.hzdl.service.impl;

import com.hzdl.service.AccountService;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Service;


@Service
public class AccountServiceImpl implements AccountService {

    @Override
    public void save() {
        System.out.println("完成了account对象的保存");
    }

    @Override
    public void update(String name) {
        System.out.println("完成了account对象的update");

    }

    @Override
    public String findAll() {
        System.out.println("完成了account对象的findAll");
        return "findAll";
    }

    @Override
    public String findById(Integer id) {
        System.out.println("完成了account对象的findById");

        int i = 1/0;
        return "findById";
    }
}
